package com.ruoyi.service.fileshare;

import com.ruoyi.domain.fileshare.entity.SysFile;

import javax.mail.internet.MimeMessage;
import java.util.List;

public interface EmailService {
    /**
     * 构建邮件消息
     * @param sender 发送人
     * @param recipients 收件人列表
     * @param title 邮件标题
     * @param content 邮件内容
     * @param attachments 附件列表
     * @param id 邮件唯一识别码
     * */
    MimeMessage buildMimeMessage(String id,String sender, List<String> recipients, String title, String content, List<SysFile> attachments);

    MimeMessage buildMimeMessageCompressAttachments(String id,String sender, List<String> recipients, String title, String content, List<SysFile> attachments);

    void send(MimeMessage message);
}
